<?php

namespace app\index\validate;

use think\Validate;

class Deal extends Validate
{
    protected $rule = [
        "price"          => "require|gt:0",
        "num"          => "require|number|gt:0",
        "pay_password"   => "require",
    ];

    protected $message = [
        'price.require'          => '请输入交易单价',
        'price.gt'               => '兑换交易单价错误',
        'num.require'          => '请输入交易数量',
        'num.number'          => '请输入交易数量只能是整数',
        'num.gt'               => '交易数量错误',
        'pay_password.require'   => '请填写支付密码',
    ];

}